#include<stdio.h>
#define MaxSize 50
typedef struct
{
    ElemType data[MaxSize];
    int length;
}SqList;
void reverse(SqList *&L)
{
    ElemType c;
    for(int i=0;i<L->length/2;i++)
    {
        c=L->data[i];
        L->data[i]=L->data[L->length-i-1];
        L->data[L->length-i-1]=c;
    }
    L->length=c+1;
}
int main()
{
    SqList *L;
    ElemType e;
    printf("反转顺序表\n");
    reverse(L);
}